package v1

import (
	"api-go/serializer"
	"api-go/service/v1/user"

	"github.com/gin-gonic/gin"
)

// 发送邮件
func SendEmail(c *gin.Context) {
	var service user.Email
	var res *serializer.Response
	if err := c.ShouldBind(&service); err != nil {
		res = serializer.ErrorResponse(serializer.CodeParamError)
	} else {
		res = service.SendEmail()
	}
	c.JSON(200, res)
}
